package test_2_27;
class school
{
    double Get_garde;
    public school(double Get_garde)
    {
        this.Get_garde=Get_garde;
    }
    public double getGet_garde()
    {
        return Get_garde;
    }
    public void setGet_garde(double get_garde)
    {
        this.Get_garde=Get_garde;
    }
}
class students
{
    String name;
    int id;
    double zonghechengji;
    double tiyuchengji;
    public students(String name,int id,double zonghechengji,double tiyuchengji)
    {
        this.name=name;
        this.id=id;
        this.zonghechengji=zonghechengji;
        this.tiyuchengji=tiyuchengji;
    }
    public String getName()
    {
        return name;
    }
    public int getId()
    {
        return id;
    }
    public double getZonghechengji()
    {
        return zonghechengji;
    }
    public double getTiyuchengji()
    {
        return tiyuchengji;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setZonghechengji(double zonghechengji) {
        this.zonghechengji = zonghechengji;
    }

    public void setTiyuchengji(double tiyuchengji) {
        this.tiyuchengji = tiyuchengji;
    }
}

public class one {
    public static void main(String[] args) {
        school s=new school(300.0);
        students S=new students("陈圆",123456,300.2,400);
        pass(s.Get_garde,S.tiyuchengji,S.tiyuchengji);

    }
    public static void pass(double a,double b,double c)
    {
        if(b>=a || (c>90 && b>300))
        {
            System.out.println("恭喜被录取了");
        }
        else
        {
            System.out.println("未被录取");
        }
    }
}
